package com.dyna.foundation.domain.req;

import com.dyna.constants.DateFatter;
import com.dyna.domain.req.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;

@ApiModel(value = "管理后台 - 字典类型分页列表 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDictTypePageReq extends PageParam {

    @ApiModelProperty(value = "字典类型名称，模糊匹配", example = "芋道")
    private String name;

    @ApiModelProperty(value = "字典类型，模糊匹配", example = "sys_common_sex")
    @Size(max = 100, message = "字典类型类型长度不能超过100个字符")
    private String type;

    @ApiModelProperty(value = "展示状态，参见 CommonStatusEnum 枚举类", example = "1")
    private Integer status;

    @DateTimeFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime[] createTime;

}
